package model;

import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
  
public class CollectionModel
{
    private List<Object> lists;
    private Set<Object> sets;
    private Map<Object, Object> maps;
    private Properties pros;
    
    public void showList()
    {
    	System.out.println("lists................");
    	System.out.println(lists.getClass());
    	for(int i=0;i<lists.size();i++)
    		System.out.println(lists.get(i));
    }

    public void showSet()
    {
    	System.out.println("sets................");
    	System.out.println(sets.getClass());
    	for(Object set:sets)
    		System.out.println(set);
    }
    
    public void showMap()
    {
    	System.out.println("maps................");
    	System.out.println(maps.getClass());
    	Iterator it=maps.entrySet().iterator();
    	while(it.hasNext())
		{
			Map.Entry  entry=(Map.Entry) (it.next());
			System.out.println(entry.getKey()+"   "+entry.getValue());
		}
    }
    
    public void showProperty()
    {
       	System.out.println("pros................");
       	System.out.println(pros.getClass());
    	Iterator it=pros.entrySet().iterator();
    	while(it.hasNext())
		{
    		Map.Entry  entry=(Map.Entry) (it.next());
			System.out.println(entry.getKey()+"   "+entry.getValue());
		}
    	
    }
    
	public List<Object> getLists() {
		return lists;
	}

	public void setLists(List<Object> lists) {
		this.lists = lists;
	}

	public Set<Object> getSets() {
		return sets;
	}

	public void setSets(Set<Object> sets) {
		this.sets = sets;
	}

	public Map<Object, Object> getMaps() {
		return maps;
	}

	public void setMaps(Map<Object, Object> maps) {
		this.maps = maps;
	}

	public Properties getPros() {
		return pros;
	}

	public void setPros(Properties pros) {
		this.pros = pros;
	}
    
    
}